const express = require('express');
const app = new express();
const bodyParser = require('body-parser');
app.use("/image",express.static("./public/images"))
app.use("/news",express.static("./public/news"))
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
const router = require('./router/router.js');
app.use('/',router);
app.listen(3000,()=>{
    console.log('running.....')
})